﻿<div class="header-left">
	@Html.ActionLink("Домашняя страница", "Index", "Home", new {}, new { @class = "logo"})@Html.ActionLink("Beta", "Index", "Home", new {}, new {@class = "beta", target = "_blank"})<a href="http://bicycle.smarly.net/" target="_blank" class="header-link">Велосипед</a><a  rel="nofollow" href="http://www.youtube.com/playlist?list=PL7y5d3VOW3rg6nn0bXii79-92jmLYechP" target="_blank" class="header-link">Видео</a>
</div>

<script type="text/javascript">
	$().ready(function() {
		$('form.form-search').submit(function(e) {
			e.preventDefault();
			var str = $('input[type="search"]', $(this)).val();
			
			if (str && !/^\s*$/.test(str)) {
				window.location = '@Url.Action("Index", "Search", new {search = "SEARCHVALUE"})'.replace("SEARCHVALUE", encodeURIComponent(str));
			}

			return false;
		});
	});
</script>

<div class="header-right">
@*	<form class="form-search">
		<input class="search-query search-text" type="search" value="@ViewBag.SearchValue">
		<button type="submit">Поиск</button>
	</form>*@
	@*
	@if (User.Identity.IsAuthenticated)
	{
		<div class="main-menu dropdown">
			<a class="dropdown-toggle" data-toggle="dropdown" href="#">@User.Identity.Name</a>
			<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
				<li><a href="index-1.html">Кабинет</a></li>
				<li class="divider"></li>
				<li>@Html.ActionLink("Выход", "Logout", "Account")</li>
			</ul>
		</div>
	}
	else
	{
		<a data-toggle="modal" data-target="#modal-account-logon" class="header-link">Вход</a>
	}
*@
	@if (ViewBag.AllowFullScreen is bool)
	{
		<a  rel="nofollow" href="#" class="header-link thx" id="full-screen">"На весь экран"</a>
	}

	@if (User.Identity.IsAuthenticated)
	{
		@Html.ActionLink("Выход", "Logout", "Account", new {}, new { @class = "header-link"})
	}
	else
	{
		<a rel="nofollow" data-toggle="modal" data-target="#modal-account-logon" class="header-link">Вход</a>
	}

</div>
